lines = []
for line in open('shoplist.data', 'r'):
    lines.append(line[::-1])

for r in lines[::-1]:
    print r

